package org.xutils.main.db;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by ZZH on 2020/10/20.
 *
 * @Date: 2020/10/20
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description: 消息实体类, CIM消息
 */
@Table(name = "msun_cim_msg")
public class CIMModel {

    @Column(name = "id", isId = true, autoGen = true)
    private long id;
    /**
     * 标题
     */
    @Column(name = "title", property = " DEFAULT '' ")
    private String title;
    /**
     * 接收时间
     */
    @Column(name = "notice_time")
    private Long noticeTime;
    /**
     * 内容
     */
    @Column(name = "content", property = " DEFAULT '' ")
    private String content;
    /**
     * 消息头像
     */
    @Column(name = "notice_url", property = " DEFAULT '' ")
    private String noticeUrl;

    /**
     * 消息类型, 1000是折叠消息
     */
    @Column(name = "chat_type", property = " DEFAULT '' ")
    private String chatType;

    /**
     * 来源，targetId
     */
    @Column(name = "target_id", property = " DEFAULT '' ")
    private String targetId;
    /**
     * 消息ID
     */
    @Column(name = "msg_id", property = "NOT NULL UNIQUE ON CONFLICT REPLACE")
    private String msgId;
    /**
     * 扩展字段
     */
    @Column(name = "extra", property = " DEFAULT '' ")
    private String extra;

    /**
     * 未读数量
     */
    @Column(name = "number", property = "DEFAULT 0")
    private Integer number = 0;

    /**
     * 是否处理
     * 0未处理 1已处理
     */
    @Column(name = "handle_status", property = "DEFAULT 0")
    public int handleStatus = 0;
    /**
     * 点击跳转的页面
     */
    @Column(name = "page_url", property = " DEFAULT '' ")
    public String pageUrl = "";

    //hdInspectRemind 检查报告消息；
    @Column(name = "data_source_type", property = " DEFAULT '' ")
    public String dataSourceType;
    //哪个科室的CIM消息；
    @Column(name = "dept_id", property = " DEFAULT '' ")
    public String deptId;
    //检查或者检验报告的id，判断那个报告红点提示；
    @Column(name = "report_id", property = " DEFAULT '' ")
    public String reportId;
    //患者的唯一值，判断那个患者红点提示；
    @Column(name = "pat_id", property = " DEFAULT '' ")
    public String patId;

    @Column(name = "pat_in_hos_id", property = " DEFAULT '' ")
    public String patInHosId;
    //我的患者是否红点提示；
    @Column(name = "is_my_pat", property = " DEFAULT '' ")
    public String isMyPat;
    @Column(name = "is_my_pat_user_sys_ids", property = " DEFAULT '' ")
    public String myPatUserSysIds;

    public String getPatId() {
        return patId;
    }

    public void setPatId(String patId) {
        this.patId = patId;
    }

    public String getIsMyPat() {
        return isMyPat;
    }

    public void setIsMyPat(String isMyPat) {
        this.isMyPat = isMyPat;
    }

    public int getHandleStatus() {
        return handleStatus;
    }

    public void setHandleStatus(int handleStatus) {
        this.handleStatus = handleStatus;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getReportId() {
        return reportId;
    }

    public void setReportId(String reportId) {
        this.reportId = reportId;
    }

    /**
     * 当前登录人的id
     */
    @Column(name = "current_login_id")
    private String currentLoginId;


    public String getDataSourceType() {
        return dataSourceType;
    }

    public void setDataSourceType(String dataSourceType) {
        this.dataSourceType = dataSourceType;
    }

    private boolean isSelect;

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getCurrentLoginId() {
        return currentLoginId;
    }

    public void setCurrentLoginId(String currentLoginId) {
        this.currentLoginId = currentLoginId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getNoticeTime() {
        return noticeTime;
    }

    public void setNoticeTime(Long noticeTime) {
        this.noticeTime = noticeTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getNoticeUrl() {
        return noticeUrl;
    }

    public void setNoticeUrl(String noticeUrl) {
        this.noticeUrl = noticeUrl;
    }


    public String getChatType() {
        return chatType;
    }

    public void setChatType(String chatType) {
        this.chatType = chatType;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }


    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }


    public String getPatInHosId() {
        return patInHosId;
    }

    public void setPatInHosId(String patInHosId) {
        this.patInHosId = patInHosId;
    }
}
